package com.js.purs.service;

import java.util.List;
import com.js.purs.domain.PurProdBudget;

/**
 * 采购Service接口
 * 
 * @author lzq
 * @date 2024-06-12
 */
public interface IPurProdBudgetService 
{
    /**
     * 查询采购
     * 
     * @param bgId 采购主键
     * @return 采购
     */
    public PurProdBudget selectPurProdBudgetByBgId(String bgId);

    /**
     * 查询采购列表
     * 
     * @param purProdBudget 采购
     * @return 采购集合
     */
    public List<PurProdBudget> selectPurProdBudgetList(PurProdBudget purProdBudget);

    /**
     * 新增采购
     * 
     * @param purProdBudget 采购
     * @return 结果
     */
    public int insertPurProdBudget(PurProdBudget purProdBudget);

    /**
     * 修改采购
     * 
     * @param purProdBudget 采购
     * @return 结果
     */
    public int updatePurProdBudget(PurProdBudget purProdBudget);

    /**
     * 批量删除采购
     * 
     * @param bgIds 需要删除的采购主键集合
     * @return 结果
     */
    public int deletePurProdBudgetByBgIds(String[] bgIds);

    /**
     * 删除采购信息
     * 
     * @param bgId 采购主键
     * @return 结果
     */
    public int deletePurProdBudgetByBgId(String bgId);


    int insertPurProdBudgetBatch(List<PurProdBudget> purProdBudgets);

    /**
     * 根据采购计划编号查询预算
     */
    List<PurProdBudget> selectPurProdBudgetByPlanCode(String planCode);

    int updateOrInsertBudGet(List<PurProdBudget> budgetList);

    int deleteBudGet(List<PurProdBudget> budGetList);
}
